import request from '@/utils/request'

export function queryByPage (data) {
  return request({
    url: '/sysMenu/queryByPage',
    method: 'post',
    data: data
  })
}

export function insert (data) {
  return request({
    url: '/sysMenu/insert',
    method: 'post',
    data: data
  })
}

export function update (data) {
  return request({
    url: '/sysMenu/update',
    method: 'post',
    data: data
  })
}

export function deleteById (data) {
  return request({
    url: '/sysMenu/deleteById?' + data,
    method: 'get'
  })
}

export function queryListByUserId (data) {
  return request({
    url: '/sysPermission/queryListByUserId',
    method: 'post',
    data: data
  })
}